package com.rdc.jiajiadictionary.dailysentence;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentTransaction;

import com.rdc.jiajiadictionary.R;


public class DailySentenceActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.daily_sentence_activity);

        DailySentenceFragment dailySentenceFragment = (DailySentenceFragment) getSupportFragmentManager().findFragmentById(R.id.daily_sentence_fragment_container);

        if (null == dailySentenceFragment) {
            dailySentenceFragment = new DailySentenceFragment();

            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            transaction.add(R.id.daily_sentence_fragment_container,dailySentenceFragment);
            transaction.commit();
        }

        DailySentencePresenter dailySentencePresenter = new DailySentencePresenter(dailySentenceFragment);

    }


}